package mips.instructions;

import mips.structure.MipsInstr;
import mips.value.MipsValue;

public class Beq extends MipsInstr {
    public MipsValue op1;
    public String label1;
    public String label2;

    public Beq(MipsValue op1, String label1, String label2) {
        this.op1 = op1;
        this.label1 = label1;
        this.label2 = label2;
    }

    @Override
    public String toString() {
        return "beq " + op1 + ", $0, " + label1 + "\n" + "j " + label2;
    }

}
